package com.jlz.beans.core;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.julewa.db.DB;
import com.julewa.db.Entity;

/*
 * 由于价格的敏感性,所以单独列出
 * 
 * 包括年月日周时等多种周期
 * 
 * 还包括折扣,协商,NULL等
 * 
 * 只是这里的price表将是动态合成的
 * 
 * Price_$Assert|Request|Contract$ ...
 * 
 */
@DB.DYNAMIC
@Component @Scope(Entity.SCOPE)
public class PriceBean extends Dynamic<Long> {
	@DB.COLUMN int idx;//顺序很重要,通常第一价格最重要
	@DB.COLUMN int min; //最低
	@DB.COLUMN int max; //最高
	@DB.COLUMN int type;//租价,售价,折扣,可协商,NULL,
	@DB.COLUMN int duration;//时长
	@DB.COLUMN int timeunit;//时间单位
	
	 
	public int getIdx() {
		return idx;
	}
	public void setIdx(int idx) {
		this.idx = idx;
	}
	public int getMin() {
		return min;
	}
	public void setMin(int min) {
		this.min = min;
	}
	public int getMax() {
		return max;
	}
	public void setMax(int max) {
		this.max = max;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public int getTimeunit() {
		return timeunit;
	}
	public void setTimeunit(int timeunit) {
		this.timeunit = timeunit;
	}
	
}
